import 'package:app/util/http.dart';
import 'package:flutter/material.dart';

class MenuApi{
  BuildContext? context;

  static MenuApi of(BuildContext? context) {
    MenuApi menuApi = MenuApi();
    menuApi.context = context;
    return menuApi;
  }

  /// 查找用户菜单
  Future<dynamic> menus() async{
    return ApiService.of(context).get('sys/menu/menuList/1');
  }
}